3.2.67 \(\int \frac {(A+B \log (e (a+b x)^n (c+d x)^{-n}))^3}{a+b x} \, dx\) [167]

3.2.67.1 Optimal result
3.2.67.2 Mathematica [B] (verified)
3.2.67.3 Rubi [A] (warning: unable to verify)
3.2.67.4 Maple [F]
3.2.67.5 Fricas [F]
3.2.67.6 Sympy [F(-1)]
3.2.67.7 Maxima [F]
3.2.67.8 Giac [F]
3.2.67.9 Mupad [F(-1)]

3.2.67.1 Optimal result

Integrand size = 33, antiderivative size = 186 \[ \int \frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^3}{a+b x} \, dx=-\frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^3 \log \left (1-\frac {b (c+d x)}{d (a+b x)}\right )}{b}+\frac {3 B n \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^2 \operatorname {PolyLog}\left (2,\frac {b (c+d x)}{d (a+b x)}\right )}{b}+\frac {6 B^2 n^2 \left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right ) \operatorname {PolyLog}\left (3,\frac {b (c+d x)}{d (a+b x)}\right )}{b}+\frac {6 B^3 n^3 \operatorname {PolyLog}\left (4,\frac {b (c+d x)}{d (a+b x)}\right )}{b} \]

output
-(A+B*ln(e*(b*x+a)^n/((d*x+c)^n)))^3*ln(1-b*(d*x+c)/d/(b*x+a))/b+3*B*n*(A+ 
B*ln(e*(b*x+a)^n/((d*x+c)^n)))^2*polylog(2,b*(d*x+c)/d/(b*x+a))/b+6*B^2*n^ 
2*(A+B*ln(e*(b*x+a)^n/((d*x+c)^n)))*polylog(3,b*(d*x+c)/d/(b*x+a))/b+6*B^3 
*n^3*polylog(4,b*(d*x+c)/d/(b*x+a))/b
 
3.2.67.2 Mathematica [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(2513\) vs. \(2(186)=372\).

Time = 0.57 (sec) , antiderivative size = 2513, normalized size of antiderivative = 13.51 \[ \int \frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^3}{a+b x} \, dx=\text {Result too large to show} \]

input
Integrate[(A + B*Log[(e*(a + b*x)^n)/(c + d*x)^n])^3/(a + b*x),x]
 
output
(4*A^3*Log[a + b*x] - 6*A^2*B*n*Log[a + b*x]^2 + 4*A*B^2*n^2*Log[a + b*x]^ 
3 - B^3*n^3*Log[a + b*x]^4 + B^3*n^3*Log[(d*(a + b*x))/(-(b*c) + a*d)]^4 - 
 4*B^3*n^3*Log[(d*(a + b*x))/(-(b*c) + a*d)]^3*Log[-((d*(a + b*x))/(b*(c + 
 d*x)))] + 6*B^3*n^3*Log[(d*(a + b*x))/(-(b*c) + a*d)]^2*Log[-((d*(a + b*x 
))/(b*(c + d*x)))]^2 - 4*B^3*n^3*Log[(d*(a + b*x))/(-(b*c) + a*d)]*Log[-(( 
d*(a + b*x))/(b*(c + d*x)))]^3 + B^3*n^3*Log[-((d*(a + b*x))/(b*(c + d*x)) 
)]^4 - 12*A*B^2*n^2*Log[a + b*x]*Log[c + d*x]^2 + 12*B^3*n^3*Log[a + b*x]^ 
2*Log[c + d*x]^2 + 12*A*B^2*n^2*Log[(d*(a + b*x))/(-(b*c) + a*d)]*Log[c + 
d*x]^2 - 12*B^3*n^3*Log[a + b*x]*Log[(d*(a + b*x))/(-(b*c) + a*d)]*Log[c + 
 d*x]^2 - 8*B^3*n^3*Log[a + b*x]*Log[c + d*x]^3 + 8*B^3*n^3*Log[(d*(a + b* 
x))/(-(b*c) + a*d)]*Log[c + d*x]^3 + 12*A^2*B*n*Log[a + b*x]*Log[(b*(c + d 
*x))/(b*c - a*d)] - 12*A*B^2*n^2*Log[a + b*x]^2*Log[(b*(c + d*x))/(b*c - a 
*d)] + 4*B^3*n^3*Log[a + b*x]^3*Log[(b*(c + d*x))/(b*c - a*d)] + 8*B^3*n^3 
*Log[(d*(a + b*x))/(-(b*c) + a*d)]^3*Log[(b*(c + d*x))/(b*c - a*d)] - 12*B 
^3*n^3*Log[(d*(a + b*x))/(-(b*c) + a*d)]^2*Log[-((d*(a + b*x))/(b*(c + d*x 
)))]*Log[(b*(c + d*x))/(b*c - a*d)] + 24*A*B^2*n^2*Log[a + b*x]*Log[c + d* 
x]*Log[(b*(c + d*x))/(b*c - a*d)] - 24*B^3*n^3*Log[a + b*x]^2*Log[c + d*x] 
*Log[(b*(c + d*x))/(b*c - a*d)] + 12*B^3*n^3*Log[a + b*x]*Log[c + d*x]^2*L 
og[(b*(c + d*x))/(b*c - a*d)] + 6*B^3*n^3*Log[a + b*x]^2*Log[(b*(c + d*x)) 
/(b*c - a*d)]^2 + 12*B^3*n^3*Log[a + b*x]*Log[(d*(a + b*x))/(-(b*c) + a...
 
3.2.67.3 Rubi [A] (warning: unable to verify)

Time = 0.65 (sec) , antiderivative size = 174, normalized size of antiderivative = 0.94, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {2973, 2949, 2779, 2821, 2830, 7143}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^3}{a+b x} \, dx\)

\(\Big \downarrow \) 2973

\(\displaystyle \int \frac {\left (B \log \left (e (a+b x)^n (c+d x)^{-n}\right )+A\right )^3}{a+b x}dx\)

\(\Big \downarrow \) 2949

\(\displaystyle \int \frac {(c+d x) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^3}{(a+b x) \left (b-\frac {d (a+b x)}{c+d x}\right )}d\frac {a+b x}{c+d x}\)

\(\Big \downarrow \) 2779

\(\displaystyle \frac {3 B n \int \frac {(c+d x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right )^2 \log \left (1-\frac {b (c+d x)}{d (a+b x)}\right )}{a+b x}d\frac {a+b x}{c+d x}}{b}-\frac {\log \left (1-\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^3}{b}\)

\(\Big \downarrow \) 2821

\(\displaystyle \frac {3 B n \left (\operatorname {PolyLog}\left (2,\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2-2 B n \int \frac {(c+d x) \left (A+B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )\right ) \operatorname {PolyLog}\left (2,\frac {b (c+d x)}{d (a+b x)}\right )}{a+b x}d\frac {a+b x}{c+d x}\right )}{b}-\frac {\log \left (1-\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^3}{b}\)

\(\Big \downarrow \) 2830

\(\displaystyle \frac {3 B n \left (\operatorname {PolyLog}\left (2,\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2-2 B n \left (B n \int \frac {(c+d x) \operatorname {PolyLog}\left (3,\frac {b (c+d x)}{d (a+b x)}\right )}{a+b x}d\frac {a+b x}{c+d x}-\operatorname {PolyLog}\left (3,\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )\right )\right )}{b}-\frac {\log \left (1-\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^3}{b}\)

\(\Big \downarrow \) 7143

\(\displaystyle \frac {3 B n \left (\operatorname {PolyLog}\left (2,\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^2-2 B n \left (-\left (\operatorname {PolyLog}\left (3,\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )\right )-B n \operatorname {PolyLog}\left (4,\frac {b (c+d x)}{d (a+b x)}\right )\right )\right )}{b}-\frac {\log \left (1-\frac {b (c+d x)}{d (a+b x)}\right ) \left (B \log \left (e \left (\frac {a+b x}{c+d x}\right )^n\right )+A\right )^3}{b}\)

input
Int[(A + B*Log[(e*(a + b*x)^n)/(c + d*x)^n])^3/(a + b*x),x]
 
output
-(((A + B*Log[e*((a + b*x)/(c + d*x))^n])^3*Log[1 - (b*(c + d*x))/(d*(a + 
b*x))])/b) + (3*B*n*((A + B*Log[e*((a + b*x)/(c + d*x))^n])^2*PolyLog[2, ( 
b*(c + d*x))/(d*(a + b*x))] - 2*B*n*(-((A + B*Log[e*((a + b*x)/(c + d*x))^ 
n])*PolyLog[3, (b*(c + d*x))/(d*(a + b*x))]) - B*n*PolyLog[4, (b*(c + d*x) 
)/(d*(a + b*x))])))/b
 

3.2.67.3.1 Defintions of rubi rules used

rule 2779
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((x_)*((d_) + (e_.)*(x_)^(r 
_.))), x_Symbol] :> Simp[(-Log[1 + d/(e*x^r)])*((a + b*Log[c*x^n])^p/(d*r)) 
, x] + Simp[b*n*(p/(d*r))   Int[Log[1 + d/(e*x^r)]*((a + b*Log[c*x^n])^(p - 
 1)/x), x], x] /; FreeQ[{a, b, c, d, e, n, r}, x] && IGtQ[p, 0]
 

rule 2821
Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b 
_.))^(p_.))/(x_), x_Symbol] :> Simp[(-PolyLog[2, (-d)*f*x^m])*((a + b*Log[c 
*x^n])^p/m), x] + Simp[b*n*(p/m)   Int[PolyLog[2, (-d)*f*x^m]*((a + b*Log[c 
*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 
0] && EqQ[d*e, 1]
 

rule 2830
Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*PolyLog[k_, (e_.)*(x_)^(q_ 
.)])/(x_), x_Symbol] :> Simp[PolyLog[k + 1, e*x^q]*((a + b*Log[c*x^n])^p/q) 
, x] - Simp[b*n*(p/q)   Int[PolyLog[k + 1, e*x^q]*((a + b*Log[c*x^n])^(p - 
1)/x), x], x] /; FreeQ[{a, b, c, e, k, n, q}, x] && GtQ[p, 0]
 

rule 2949
Int[((A_.) + Log[(e_.)*(((a_.) + (b_.)*(x_))/((c_.) + (d_.)*(x_)))^(n_.)]*( 
B_.))^(p_.)*((f_.) + (g_.)*(x_))^(m_.), x_Symbol] :> Simp[(b*c - a*d)^(m + 
1)*(g/b)^m   Subst[Int[x^m*((A + B*Log[e*x^n])^p/(b - d*x)^(m + 2)), x], x, 
 (a + b*x)/(c + d*x)], x] /; FreeQ[{a, b, c, d, e, f, g, A, B, n}, x] && Ne 
Q[b*c - a*d, 0] && IntegersQ[m, p] && EqQ[b*f - a*g, 0] && (GtQ[p, 0] || Lt 
Q[m, -1])
 

rule 2973
Int[((A_.) + Log[(e_.)*(u_)^(n_.)*(v_)^(mn_)]*(B_.))^(p_.)*(w_.), x_Symbol] 
 :> Subst[Int[w*(A + B*Log[e*(u/v)^n])^p, x], e*(u/v)^n, e*(u^n/v^n)] /; Fr 
eeQ[{e, A, B, n, p}, x] && EqQ[n + mn, 0] && LinearQ[{u, v}, x] &&  !Intege 
rQ[n]
 

rule 7143
Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_S 
ymbol] :> Simp[PolyLog[n + 1, c*(a + b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d 
, e, n, p}, x] && EqQ[b*d, a*e]
 
3.2.67.4 Maple [F]

\[\int \frac {{\left (A +B \ln \left (e \left (b x +a \right )^{n} \left (d x +c \right )^{-n}\right )\right )}^{3}}{b x +a}d x\]

input
int((A+B*ln(e*(b*x+a)^n/((d*x+c)^n)))^3/(b*x+a),x)
 
output
int((A+B*ln(e*(b*x+a)^n/((d*x+c)^n)))^3/(b*x+a),x)
 
3.2.67.5 Fricas [F]

\[ \int \frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^3}{a+b x} \, dx=\int { \frac {{\left (B \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A\right )}^{3}}{b x + a} \,d x } \]

input
integrate((A+B*log(e*(b*x+a)^n/((d*x+c)^n)))^3/(b*x+a),x, algorithm="frica 
s")
 
output
integral((B^3*log((b*x + a)^n*e/(d*x + c)^n)^3 + 3*A*B^2*log((b*x + a)^n*e 
/(d*x + c)^n)^2 + 3*A^2*B*log((b*x + a)^n*e/(d*x + c)^n) + A^3)/(b*x + a), 
 x)
 
3.2.67.6 Sympy [F(-1)]

Timed out. \[ \int \frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^3}{a+b x} \, dx=\text {Timed out} \]

input
integrate((A+B*ln(e*(b*x+a)**n/((d*x+c)**n)))**3/(b*x+a),x)
 
output
Timed out
 
3.2.67.7 Maxima [F]

\[ \int \frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^3}{a+b x} \, dx=\int { \frac {{\left (B \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A\right )}^{3}}{b x + a} \,d x } \]

input
integrate((A+B*log(e*(b*x+a)^n/((d*x+c)^n)))^3/(b*x+a),x, algorithm="maxim 
a")
 
output
-B^3*log(b*x + a)*log((d*x + c)^n)^3/b + A^3*log(b*x + a)/b + integrate((B 
^3*b*c*log(e)^3 + 3*A*B^2*b*c*log(e)^2 + 3*A^2*B*b*c*log(e) + (B^3*b*d*x + 
 B^3*b*c)*log((b*x + a)^n)^3 + 3*(B^3*b*c*log(e) + A*B^2*b*c + (B^3*b*d*lo 
g(e) + A*B^2*b*d)*x)*log((b*x + a)^n)^2 + 3*(B^3*b*c*log(e) + A*B^2*b*c + 
(B^3*b*d*log(e) + A*B^2*b*d)*x + (B^3*b*d*n*x + B^3*a*d*n)*log(b*x + a) + 
(B^3*b*d*x + B^3*b*c)*log((b*x + a)^n))*log((d*x + c)^n)^2 + (B^3*b*d*log( 
e)^3 + 3*A*B^2*b*d*log(e)^2 + 3*A^2*B*b*d*log(e))*x + 3*(B^3*b*c*log(e)^2 
+ 2*A*B^2*b*c*log(e) + A^2*B*b*c + (B^3*b*d*log(e)^2 + 2*A*B^2*b*d*log(e) 
+ A^2*B*b*d)*x)*log((b*x + a)^n) - 3*(B^3*b*c*log(e)^2 + 2*A*B^2*b*c*log(e 
) + A^2*B*b*c + (B^3*b*d*x + B^3*b*c)*log((b*x + a)^n)^2 + (B^3*b*d*log(e) 
^2 + 2*A*B^2*b*d*log(e) + A^2*B*b*d)*x + 2*(B^3*b*c*log(e) + A*B^2*b*c + ( 
B^3*b*d*log(e) + A*B^2*b*d)*x)*log((b*x + a)^n))*log((d*x + c)^n))/(b^2*d* 
x^2 + a*b*c + (b^2*c + a*b*d)*x), x)
 
3.2.67.8 Giac [F]

\[ \int \frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^3}{a+b x} \, dx=\int { \frac {{\left (B \log \left (\frac {{\left (b x + a\right )}^{n} e}{{\left (d x + c\right )}^{n}}\right ) + A\right )}^{3}}{b x + a} \,d x } \]

input
integrate((A+B*log(e*(b*x+a)^n/((d*x+c)^n)))^3/(b*x+a),x, algorithm="giac" 
)
 
output
integrate((B*log((b*x + a)^n*e/(d*x + c)^n) + A)^3/(b*x + a), x)
 
3.2.67.9 Mupad [F(-1)]

Timed out. \[ \int \frac {\left (A+B \log \left (e (a+b x)^n (c+d x)^{-n}\right )\right )^3}{a+b x} \, dx=\int \frac {{\left (A+B\,\ln \left (\frac {e\,{\left (a+b\,x\right )}^n}{{\left (c+d\,x\right )}^n}\right )\right )}^3}{a+b\,x} \,d x \]

input
int((A + B*log((e*(a + b*x)^n)/(c + d*x)^n))^3/(a + b*x),x)
 
output
int((A + B*log((e*(a + b*x)^n)/(c + d*x)^n))^3/(a + b*x), x)